package com.judian.smart.util;


import com.judian.smart.model.WeatherInfo;

public class WeatherUtils {

    public static WeatherInfo weatherInfo = null;

    public static WeatherInfo getWeatherInfo() {

        if (weatherInfo == null) {
            weatherInfo = new WeatherInfo();
            weatherInfo.setAirQuality("");
            weatherInfo.setCity("");
            weatherInfo.setAirData(0);
            weatherInfo.setDateLong(0);
            weatherInfo.setExp("");
            weatherInfo.setHumidity("");
            weatherInfo.setPm25("");
            weatherInfo.setTemp(0);
            weatherInfo.setTempRange("");
            weatherInfo.setLastUpdateTime("");
        }
        return weatherInfo;
    }

    public static void setWeatherInfo(WeatherInfo weatherInfo) {
        WeatherUtils.weatherInfo = weatherInfo;
    }

}
